package com.wxl52d41.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GreetingsController {

    private static final Logger LOGGER = LoggerFactory.getLogger(GreetingsController.class);


    @GetMapping("/greeting")
    public boolean greeting() {
        LOGGER.debug("This is a debug message");
        LOGGER.info("This is an info message.......................................................................................................................................................................................................................................................");
        LOGGER.warn("This is a warn message");
        LOGGER.error("This is an error message....................................................................................................................................................................................................................................................................................");
        return true;
    }
}
